let v = new Vue({
    el:'#main-container',
    data:{
        pageInfo:{
            pageSize:5
        },
        condition:{
            type:'',
            status:''
        }
    },
    methods:{
        selectByCondition:function (page,pageSize) {
            axios({
                url:`manager/qualification/list/${page}/${pageSize}`,
                method:'post',
                params:this.condition
            }).then(resp => {
                this.pageInfo = resp.data.obj;
            }).catch(error => {
                console.log(error);
            })
        },
        findAll:function (page,pageSize) {
            this.condition = { type:'', status:''};
            this.selectByCondition(page,pageSize);
        }
    },
    created:function () {
        this.selectByCondition(1,this.pageInfo.pageSize);
    }
})